import datetime
import time

# 获取当前时间
now = datetime.datetime.now()
# 将当前时间转换为Unix时间戳（秒）
timestamp_seconds = time.mktime(now.timetuple())
# 将秒转换为毫秒
timestamp_milliseconds = int(timestamp_seconds * 1000)

print(timestamp_milliseconds)
